package vip.ashes.travel.map.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "Travel.baidu_poi")
public class BaiduPoi implements Serializable {
    public static final String COL_UID = "uid";
    public static final String COL_NAME = "name";
    public static final String COL_ADDRESS = "address";
    public static final String COL_PROVINCE = "province";
    public static final String COL_CITY = "city";
    public static final String COL_AREA = "area";
    public static final String COL_TELEPHONE = "telephone";
    public static final String COL_LOCATION_LAT = "location_lat";
    public static final String COL_LOCATION_LNG = "location_lng";
    public static final String COL_POI_PHOTO_URL = "poi_photo_url";
    public static final String COL_TYPE = "type";
    private static final long serialVersionUID = 1L;
    /**
     * poi的唯一标示，可用于详情检索
     */
    @TableId(value = "uid", type = IdType.INPUT)
    private String uid;
    /**
     * 名称
     */
    @TableField(value = "name", condition = SqlCondition.LIKE)
    private String name;
    /**
     * poi地址信息
     */
    @TableField(value = "address", condition = SqlCondition.LIKE)
    private String address;
    /**
     * 所属省份
     */
    @TableField(value = "province")
    private String province;
    /**
     * 所属城市
     */
    @TableField(value = "city")
    private String city;
    /**
     * 所属区县
     */
    @TableField(value = "area")
    private String area;
    /**
     * poi电话信息
     */
    @TableField(value = "telephone")
    private String telephone;
    /**
     * 纬度值
     */
    @TableField(value = "location_lat")
    private Double locationLat;
    /**
     * 经度值
     */
    @TableField(value = "location_lng")
    private Double locationLng;
    /**
     * 景点/酒店图片
     */
    @TableField(value = "poi_photo_url")
    private String poiPhotoUrl;
    /**
     * 0景点 1酒店
     */
    @TableField(value = "type")
    private Byte type;
}
